export interface RequestInstanceState {
  /** whether the request is refreshing token */
  refreshTokenFn: Promise<boolean> | null;
  /** the request error message stack */
  errMsgStack: string[];
}

// 扩展AxiosRequestConfig类型，添加noNeedToken选项
declare module '@sa/axios' {
  interface AxiosRequestConfig {
    /** 是否不需要携带token，适用于无需认证的接口如验证码获取 */
    noNeedToken?: boolean;
  }
}
